package com.alifi.crm.biz.lotteryzf;

import java.util.List;

import com.alifi.crm.dal.object.LotteryDO;
import com.alifi.crm.dal.object.WinRecordDO;

public interface LotteryzfManager {
    
    /**
     * 获取员工抽奖信息
     * 
     * @param employeeNum
     * @return
     */
    public LotteryDO getEmployeeInfo(String employeeNum);
    
    /**
     * 获取中奖信息
     * 
     * @return
     */
    public List<WinRecordDO> getWinRecords();
    
    /**
     * 抽奖接口
     * 
     * @return
     */
    public LotteryzfResult lottery(String employeeNum, String nickName, String realName);
    
    /**
     * 转发后点击次数增加
     * 
     * @param employeeNum 增加机会的员工
     * @param recipient 被推荐人
     */
    public void addTransmitLog(String employeeNum, String recipient);
    
    
    /**
     * 获取某个员工的中奖纪录
     * 
     * @param employeeNum
     * @return
     */
    List<WinRecordDO> selectByEmployeeNum(String employeeNum);
    
    /**
     * 保存访问日志
     * 
     * @param employeeNum
     * @param realName
     * @param nickName
     */
    public void insertLog(String employeeNum, String realName, String nickName);
}
